import type { LayoutSettings } from '@/store/types/layoutSettings'
export const SET_STYLE = (settings: LayoutSettings) => {
  localStorage.setItem('layoutStyle', JSON.stringify(settings))
}

export const GET_STYLE = (): LayoutSettings => {
  const settings = localStorage.getItem('layoutStyle')
  return JSON.parse(settings as string)
}

export const REMOVE_STYLE = () => {
  localStorage.removeItem('layoutStyle')
}

export const defaultStyles = (): LayoutSettings => {
  return {
    layoutType: 'vertical',
    sidebarHidden: false,
    logoHidden: false,
    theme: 'light',
    fullscreen: false,
    tags: [],
    currentPath: ""
  }
}
